# Contributor: Thomas Kienlen <kommander@laposte.net>
# Maintainer: Thomas Kienlen <kommander@laposte.net>
pkgname=curtail
_pkgname=Curtail
pkgver=1.11.1
pkgrel=0
pkgdesc="Simple & useful image compressor"
url="https://github.com/Huluti/Curtail"
arch="noarch"
license="GPL-3.0-or-later"
depends="
	jpegoptim
	libwebp
	pngquant
	py3-gobject3
	"
makedepends="
	appstream-glib
	desktop-file-utils
	gettext
	gtk4.0-dev
	libadwaita-dev
	meson
	py3-gobject3-dev
	python3
	"
source="https://github.com/Huluti/Curtail/archive/$pkgver/curtail-$pkgver.tar.gz"
subpackages="$pkgname-lang"

builddir="$srcdir/$_pkgname-$pkgver"

build() {
	abuild-meson . build
	meson compile -C build
}

check() {
	meson test --no-rebuild --print-errorlogs -C build
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C build
}

sha512sums="
d59bcad4e774a9aa1d195f6b18964d05e41b47e81cd6fcdd86638488c0a63702c0c2ee97e20712eed4e81a0de562b7218df5519573707ace53191c14ac875b86  curtail-1.11.1.tar.gz
"
